package cate.common.table.guild.treasurehouse;

import cate.common.table.ESheet;

import java.util.List;
import java.util.stream.Collectors;

public class GuildWeekendRewardSheet extends ESheet<GuildWeekendRewardRow> {
    @Override
    public String getSheetName() {
        return "公会宝库每周赠送";
    }

    public List<GuildWeekendRewardRow> onGetAllReward(int openDay) {
        return list.stream()
                .filter(row -> openDay <= row.openServerDayEnd && openDay >= row.openServerDayStart)
                .collect(Collectors.toList());
    }
}
